package com.autoglm.data.local.entity

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.autoglm.data.model.ActionStep
import com.autoglm.data.model.TaskStatus
import java.util.Date

/**
 * 任务数据库实体
 */
@Entity(tableName = "tasks")
data class TaskEntity(
    @PrimaryKey
    val id: String,
    val description: String,
    val userInput: String,
    val steps: List<ActionStep>,
    val status: TaskStatus,
    val createdAt: Date,
    val updatedAt: Date,
    val completedAt: Date? = null,
    val errorMessage: String? = null,
    val parameters: Map<String, String> = emptyMap(),
    val applicationFlow: List<String> = emptyList()
)
